<?php
/**
 * Created by PhpStorm.
 * User: hasee
 * Date: 2018/3/21
 * Time: 14:50
 */
use yii\widgets\ActiveForm;
?>

<div style="display: none;" id="traffic" class="view">
    <div class="wapper2" >
        <img class="jt" src="/img/jt.png" style="width: 100px;position: absolute;left: 50%;margin-left: -50px;margin-top: -17px;">
        <img src="/img/n1.png">
	<ul>
        <li>
            <span>来程信息</span>
        </li>
		<li>
            <span>交通工具</span>
            <input type="radio" name="Registration[come_transportation]" value="飞机" <?= $model->come_transportation=='飞机'?'checked':''?>> <span>飞机</span>
            <input type="radio" name="Registration[come_transportation]" value="火车" <?= $model->come_transportation=='火车'?'checked':''?>> <span>火车</span>
            <input type="radio" name="Registration[come_transportation]" value="自驾" <?= $model->come_transportation=='自驾'?'checked':''?>> <span>自驾</span>
		</li>
	
		<li>
                <span>出发城市</span>
                <input type="text" id="registration-departure_city" onblur="registration_departure_city()"  name="Registration[departure_city]" value="<?= $model->departure_city?>">
            <!--<select id="registration-departure_city"  name="Registration[departure_city]" aria-invalid="false">
						<option value="北京" <?//= $model->departure_city=='北京'?'selected':''?>北京</option>
                        <option value="上海"><?//= $model->departure_city=='上海'?'selected':''?>上海</option>
                       <option value="广州" ><?//= $model->departure_city=='广州'?'selected':''?>广州</option>
                       <option value="深圳" ><?//= $model->departure_city=='深圳'?'selected':''?>深圳</option>
					</select>-->
		</li>
	
		<li>
                <span>抵达地点</span>
					<select id="registration-arrival_location" name="Registration[arrival_location]" aria-invalid="false">
							<option value="上海浦东国际机场T2航站楼" <?= $model->arrival_location=='上海浦东国际机场T2航站楼'?'selected':''?>>上海浦东国际机场T2航站楼</option>
					</select>
		</li>
	
	
		<li>
                <span>航班号/车次</span>
					<input type="text" id="registration-come_flight_number" onblur="registration_come_flight_number()"  name="Registration[come_flight_number]" value="<?= $model->come_flight_number?>">
		</li>
	
		<li>
				<span>抵达时间</span>
					<input type="text" id="registration-arrival_time" onblur="registration_arrival_time()" name="Registration[arrival_time]" value="<?= $model->arrival_time?>">
		</li>
	
	</ul>
</div>
</div>
<script type="text/javascript">
	function registration_departure_city(){
        var value=$('#registration-departure_city').val();
        if(value==''){
            alert('出发城市不能为空');
        }

    }
function registration_arrival_location(){
        var value=$('#registration-arrival_location').val();
        if(value==''){
            alert('抵达地点不能为空');
        }

    }
    function registration_come_flight_number(){
        var value=$('#registration-come_flight_number').val();
        if(value==''){
            alert('航班号/车次不能为空');
        }

    }
    function registration_arrival_time(){
        var value=$('#registration-arrival_time').val();
        if(value==''){
            alert('抵达时间不能为空');
        }

    }
</script>